package com.林子祺.CAT旅游系统.controller.contentmanagement;

import com.林子祺.CAT旅游系统.dao.deal.DeleteBuy;
import com.林子祺.CAT旅游系统.dao.ticketmanagement.TicketHistory;
import com.林子祺.CAT旅游系统.entity.ticket.TicketData;
import com.林子祺.CAT旅游系统.entity.ticketbuy.BuyData;
import com.林子祺.CAT旅游系统.entity.ticketbuy.CurrentBuyData;
import com.林子祺.CAT旅游系统.view.Menu;

import java.awt.*;

public class DeleteOrder {

    public static void delete(int order_id, String costumer,double refund){
        DeleteBuy.delete(order_id,costumer,refund);
        TicketData.Refresh();
        BuyData.Refresh();
        TicketHistory.pull(costumer);
        try {
            Menu.menu();
        } catch (AWTException e) {
            e.printStackTrace();
        }
    }

}
